package org.teammach.laddercomp.shared;

import javax.jdo.annotations.EmbeddedOnly;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable="true")
public class Team {
	 @Persistent
	 String teamName;
	 
	 @Persistent
	 Integer curPos;

	@Persistent
	 Integer played;
	 
	 @Persistent
	 Integer won;
	 
	 @Persistent
	 Integer drawn;
	 
	 @Persistent
	 Integer lost;
	 
	 @Persistent
	 Integer points;
	 
	    @PrimaryKey
	    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	    private Key key;

	 public Team(String name) {
		 this.teamName = name;
	 }

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public Integer getPlayed() {
		return played;
	}

	public void setPlayed(Integer played) {
		this.played = played;
	}

	public Integer getWon() {
		return won;
	}

	public void setWon(Integer won) {
		this.won = won;
	}

	public Integer getDrawn() {
		return drawn;
	}

	public void setDrawn(Integer drawn) {
		this.drawn = drawn;
	}

	public Integer getLost() {
		return lost;
	}

	public void setLost(Integer lost) {
		this.lost = lost;
	}

	public Integer getPoints() {
		return points;
	}

	public void setPoints(Integer points) {
		this.points = points;
	}
	
	 
	 public Integer getCurPos() {
		return curPos;
	}

	public void setCurPos(Integer curPos) {
		this.curPos = curPos;
	}
	 
}
